package com.game.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.base.BaseEntity;
import lombok.Data;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 登查人员表 pr_user
 *
 * @author game
 * @date 2020-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pr_user")
public class PrUser extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/** id */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/** 不使用 */
    @TableField("num")
	private String num;
	/** 镇 */
    @TableField("country")
	private String country;
	/** 村 */
    @TableField("village")
	private String village;
	/** 名字 */
    @TableField("name")
	private String name;
	/** 身份证 */
    @TableField("id_num")
	private String idNum;
	/** 手机号 */
    @TableField("phone")
	private String phone;
	/** 0 未审核  1 已审核  2 审核失败（不符合） */
    @TableField("state")
	private Integer state;
	/** 不符合原因 */
    @TableField("message")
	private String message;
	/** 操作员 */
    @TableField("sta_name")
	private Integer staName;


    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("num", getNum())
            .append("country", getCountry())
            .append("village", getVillage())
            .append("name", getName())
            .append("idNum", getIdNum())
            .append("phone", getPhone())
            .append("state", getState())
            .append("message", getMessage())
            .append("staName", getStaName())
            .toString();
    }
}
